Skip to main content

Aura Methods

This outlines all available methods for working with Auras in Aurora.

Aura Collection Methods

allauras

allauras -> table

Get all auras on the unit

local target = Aurora.UnitManager:Get("target")
local allAuras = target.allauras
for _, aura in ipairs(allAuras) do
print(aura.name, aura.remaining)
end

alldispelauras

alldispelauras -> table

Get all dispellable auras on the unit

local target = Aurora.UnitManager:Get("target")
local dispellableAuras = target.alldispelauras
for _, aura in ipairs(dispellableAuras) do
--Handle dispel auras
end

Individual Aura Methods

aura(id, sourceObject)

aura(id: number|string, sourceObject: Unit|nil) -> Aura|nil

Get specific aura by ID

aurauptime(id, sourceObject)

aurauptime(id: number|string, sourceObject: Unit|nil) -> number

Get aura uptime

auraremains(id, sourceObject)

auraremains(id: number|string, sourceObject: Unit|nil) -> number

Get aura remaining time

auracount(id, sourceObject)

auracount(id: number|string, sourceObject: Unit|nil) -> number

Get aura stack count

aurafrom(array, sourceObject)

aurafrom(array: number[], sourceObject: Unit|nil) -> boolean

Check if unit has aura from array

Usage Examples

local target = Aurora.UnitManager:Get("target")

-- Check for specific aura
local myDebuff = target.aura(12345)
if myDebuff and myDebuff.remaining < 3 then
-- Refresh debuff
end

-- Check for any aura from a list
local auraList = {12345, 67890, 11223}
if target.aurafrom(auraList) then
-- Unit has at least one of the auras
end

-- Get all dispellable auras
local dispellableAuras = target.alldispelauras
for _, aura in ipairs(dispellableAuras) do
print("Can dispel:", aura.name)
end